package com.sc.nft.entity.req;

import com.sc.nft.enums.EcologyIncomeTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AdminEcologyIncomeConfReq {

    @ApiModelProperty(value = "收益类型")
    @NotNull(message = "收益类型不能为空")
    private EcologyIncomeTypeEnum incomeType;

    @ApiModelProperty(value = "收益比例")
    @DecimalMin(value = "0.01",message = "收益比例不能小于0.01")
    @DecimalMax(value = "999999.99",message = "收益比例不能大于100.00")
    private BigDecimal incomeScale;

}
